package cycling.taxi.com.person;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import butterknife.ButterKnife;
import butterknife.InjectView;
import cycling.taxi.com.R;
import cycling.taxi.com.utils.Tools;

/**
 * 关于界面，显示APP版本信息
 */
public class AboutActivity extends AppCompatActivity implements View.OnClickListener {
    @InjectView(R.id.tv_app_version)
    TextView tv_app_version;
    @InjectView(R.id.back)
    ImageView back;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        ExitApplication.getInstance().addActivity(this);
        ButterKnife.inject(this);
        tv_app_version.setText("当前版本:"+Tools.getVersionName(this));
        setListenr();
    }

    private void setListenr() {
        back.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if (v.getId()==R.id.back){
            finish();
        }
    }
}
